package cn.itsource.org.service;


import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService extends IBaseService<Department,DepartmentQuery> {

    //分页查询
    PageList<Department> getAllByPage(DepartmentQuery query);

    //新增或者修改
    void saveOrUpdate(Department department);

    //删除
    void delete(Long id);

    //获得部门的无限极数
    List<Department> treeDepts();

    List<Department> getParentDepts();
}
